﻿using Rabbit.Contracts.Interface;
using Rabbit.Domain.Entity;
using Rabbit.Domain.IRepository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Rabbit.Service
{
    public class GoodService : IGoodService
    {
        private readonly IGoodsRepository _goodsRepository;

        public GoodService(IGoodsRepository goodsRepository)
        {
            _goodsRepository = goodsRepository;
        }

        public List<Good> GetGoods()
        {
            return _goodsRepository.GetGoods().ToList();
        }
    }
}
